package demo3.boot.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

//ApiModel 是类上注解
@ApiModel(value = "名称：人",description = "描述")
public class People {
    private Long id;
    private String name;

//    ApiModelProperty 可以用在方法或属性上
    @ApiModelProperty(value = "描述：姓名",name = "重写属性名：name",required = true,example = "王五")
    private String address;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
